﻿/*
=======================================================
    OperType【出入库业务类型】
=======================================================
*/

namespace Services
{
    public interface IOperTypeLogic : ILogic<OperTypeModel, OperTypeFilterModel>
    {
        int UpdateIsDelete(bool flag, params int[] ids);
    }


    public class OperTypeLogic : BaseLogic<OperTypeModel, OperTypeFilterModel, OperType, IOperTypeRepository, IOperTypeMapping, IOperTypeService>, IOperTypeLogic
    {
        public OperTypeLogic(ICurrentUser currentUser, IOperTypeRepository repository, IOperTypeMapping mapping, IOperTypeService service)
            : base(currentUser, repository, mapping, service)
        {
        }

        #region 启用/禁用  UpdateIsDelete
        public int UpdateIsDelete(bool flag, params int[] ids)
        {
            return _repository.UpdateIsDelete(flag, ids);
        }
        #endregion
        
    }
}
